package com.app.studyroom.api.model.ssrSeat;

import com.google.gson.annotations.SerializedName;

public class SsrSeatBooking {

    @SerializedName("id")
    private String id;

    @SerializedName("createdUser")
    private String createdUser;

    @SerializedName("createdTime")
    private String createdTime;

    @SerializedName("updateUser")
    private String updateUser;

    @SerializedName("updateTime")
    private String updateTime;

    @SerializedName("status")
    private String status;

    @SerializedName("seatId")
    private String seatId;

    @SerializedName("seatNum")
    private String seatNum;

    @SerializedName("bookingId")
    private String bookingId;

    @SerializedName("bookingStartTime")
    private String bookingStartTime;

    @SerializedName("bookingEndTime")
    private String bookingEndTime;

    @SerializedName("bookingUser")
    private String bookingUser;

    @SerializedName("approvalStatus")
    private String approvalStatus;

    // Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreatedUser() {
        return createdUser;
    }

    public void setCreatedUser(String createdUser) {
        this.createdUser = createdUser;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSeatId() {
        return seatId;
    }

    public void setSeatId(String seatId) {
        this.seatId = seatId;
    }

    public String getSeatNum() {
        return seatNum;
    }

    public void setSeatNum(String seatNum) {
        this.seatNum = seatNum;
    }

    public String getBookingId() {
        return bookingId;
    }

    public void setBookingId(String bookingId) {
        this.bookingId = bookingId;
    }

    public String getBookingStartTime() {
        return bookingStartTime;
    }

    public void setBookingStartTime(String bookingStartTime) {
        this.bookingStartTime = bookingStartTime;
    }

    public String getBookingEndTime() {
        return bookingEndTime;
    }

    public void setBookingEndTime(String bookingEndTime) {
        this.bookingEndTime = bookingEndTime;
    }

    public String getBookingUser() {
        return bookingUser;
    }

    public void setBookingUser(String bookingUser) {
        this.bookingUser = bookingUser;
    }

    public String getApprovalStatus() {
        return approvalStatus;
    }

    public void setApprovalStatus(String approvalStatus) {
        this.approvalStatus = approvalStatus;
    }
    public String getApprovalStatusText() {
        if (approvalStatus == null) return "未知";
        switch (approvalStatus) {
            case "0":
                return "无审批";
            case "1":
                return "待审批";
            case "2":
                return "已审批";
            case "3":
                return "审批驳回";
            case "4":
                return "学习中";
            case "5":
                return "学习结束";
            default:
                return "未知";
        }

    }
}
